<html>
    <body>
		<input type="text" id="text" value="" />
		<button type="button" id="btn">----></button>
	</body>
    <script type="text/javascript">
		$(function(){
			$("#btn").click(function(){
				var msg=$("#text").val();
				$.cookie("text",msg);
				window.location.href = "show.html";
			});
		});
	</script>
</html>